<?php

require_once("../../controllers/init.php");
require_once($FILE_SYSTEM_ROOT."/controllers/authentication.php");

$personid = 0;
if (isset($_POST['personid']))
	$personid = $_POST['personid'];

$groupid = 0;
if (isset($_POST['groupid']))
	$groupid = $_POST['groupid'];

$person = new Person($personid);
$person->removeGroup($groupid);

?>